package com.fanxuankai.boot.canal.client.autoconfigure;

/**
 * @author fanxuankai
 */
public class CheckServer {
    /**
     * 是否开启
     */
    private boolean enabled;
    /**
     * 持续多久未 get 到数据的时间阈值 ms
     */
    private long threshold = 300_000;
    /**
     * 是否钉钉通知
     */
    private boolean dingTalkNotice;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public long getThreshold() {
        return threshold;
    }

    public void setThreshold(long threshold) {
        this.threshold = threshold;
    }

    public boolean isDingTalkNotice() {
        return dingTalkNotice;
    }

    public void setDingTalkNotice(boolean dingTalkNotice) {
        this.dingTalkNotice = dingTalkNotice;
    }
}